import request from '@/utils/request'

// 查询终端档案主档列表
export function listTerminalArchive(query) {
  return request({
    url: '/hbs/terminalArchive/list',
    method: 'get',
    params: query
  })
}

// 查询终端档案主档详细
export function getTerminalArchive(id) {
  return request({
    url: '/hbs/terminalArchive/' + id,
    method: 'get'
  })
}

// 新增终端档案主档
export function addTerminalArchive(data) {
  return request({
    url: '/hbs/terminalArchive',
    method: 'post',
    data: data
  })
}

// 修改终端档案主档
export function updateTerminalArchive(data) {
  return request({
    url: '/hbs/terminalArchive',
    method: 'put',
    data: data
  })
}

// 删除终端档案主档
export function delTerminalArchive(id) {
  return request({
    url: '/hbs/terminalArchive/' + id,
    method: 'delete'
  })
}
